package com.kuang2;

import com.kuang2.pojo.User;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Author: lh
 * @Date: 2023/4/27 22:53
 * @Package:com.kuang2
 */

public class MyTest {
    public static void main(String[] args) {
      ApplicationContext context = new ClassPathXmlApplicationContext("kuang/test.xml");

        User user = context.getBean("user", User.class);

        System.out.println(user);

        System.out.println(user.name);

        System.out.println(user.getName());

    }
}
